<%--
 *  File:    ControlGLAccountControlEdit.jsp
 *  @Author: Stephen Liu
 *  Date:    Monday, February 02, 2004

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType ="text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  Category cat = Category.getInstance("jsp.ControlGLAccountControlEdit");
  String strModuleName = "GL";
  String privilegeCode = "40109";
%>

<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/SessionTimeout.inc" %>
<%@ include file="/inc/Security.inc" %>

<html>
<head>
<title>controlglaccountcontroledit</title>
<PageFlow:CheckPageFlow pageName="controlglaccountinfoview"/>
<%
  HashMap glaccountinfo = (HashMap) pageContext.getAttribute("glaccountinfo");
  if (glaccountinfo == null)
    glaccountinfo = new HashMap();

  Vector accountcheckdetails = (Vector) pageContext.getAttribute("accountcheckdetails");
  if (accountcheckdetails == null)
    accountcheckdetails = new Vector();

  if (glaccountinfo.get("entitytype") != null && glaccountinfo.get("entitytype").toString().equals("1"))
    pageContext.setAttribute("glaccountlistid", glaccountinfo.get("entityid"));
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="javascript:set_contentleft_height1(420)">
<form name="frm" method="post" action="../Dispatcher">
  <custom:hidden name="glaccountinfo" property="glaccountid"/>
  <custom:hidden property="glaccountlistid"/>

  <table id="topTable" border=0 cellpadding=0 cellspacing=0 width="100%">
    <tr>
      <td valign=top>
        <table border=0 cellpadding=1 cellspacing=0 width="100%">
          <tbody>
          <tr>
            <td bgcolor=#000000 style="PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px">
              <table bgcolor=#000000 border=0 cellpadding=0 cellspacing=0 width="100%">
                <tr>
                  <td  bgcolor=#ffffff style="PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px">
                    <div id=div2 style="HEIGHT: 245px; OVERFLOW: auto">
                      <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
                        <tr class="deepblue-left">
                          <td class="title_center" colspan="5">
                            <div align="left"><%= label.getLabelName("L_CommonControlAttrib") %><%= label.getLabelName("L_Colon") %></div>
                          </td>
                        </tr>
                        <tr class="deepblue-left">
                          <td class="title_center" width="50"><%= label.getLabelName("L_IfControl") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlItem") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlParam") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlItem") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlParam") %></td>
                        </tr>
                        <tr>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="datecontrolflag" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td><%= label.getLabelName("L_BeginDate") %><%= label.getLabelName("L_Colon") %></td>
                          <td>
                            <custom:write name="glaccountinfo" property="startdate" dataFormatName="dateformat" nbsp="true"/>
                          </td>
                          <td><%= label.getLabelName("L_EndDate") %><%= label.getLabelName("L_Colon") %></td>
                          <td>
                            <custom:write name="glaccountinfo" property="enddate" dataFormatName="dateformat" nbsp="true"/>
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="lockflag" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td><%= label.getLabelName("L_LockFlag") %></td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="dailyaccountflag" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td><%= label.getLabelName("L_DailyAccountFlag") %></td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="settlementflag" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td><%= label.getLabelName("L_SettlementInfoNeed") %></td>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="forciblesettlementflag" checkFlag="1/0" style="border:0" disabled="true"/>
                            <%= label.getLabelName("L_ForcibleControl") %> </td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td>
                            <custom:checkbox name="glaccountinfo" property="adjustflag" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td><%= label.getLabelName("L_AdjustFlag") %></td>
                          <td>&nbsp;</td>
                         <td>&nbsp;</td>
                          <td>&nbsp;</td>
                        </tr>
                        <tr class="deepblue-left">
                          <td colspan="5" ><%= label.getLabelName("L_RestrictionAndPrealarm") %><%= label.getLabelName("L_Colon") %></td>
                        </tr>
                        <tr class="deepblue-left">
                          <td class="title_center" width="50"><%= label.getLabelName("L_IfControl") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlItem") %></td>
                          <td class="title_center"><%= label.getLabelName("L_ControlParam") %></td>
                          <td colspan="2">
                            <div align="center"><%= label.getLabelName("L_Action1") %></div>
                          </td>
                        </tr>
                        <logic:iterate id="element" collection="<%= accountcheckdetails %>">
                        <%
                          if (((HashMap) element).get("actionname") == null)
                            ((HashMap) element).put("actionname", label.getLabelName("L_Alert"));
                        %>
                        <tr>
                          <td>
                            <custom:checkbox name="element" property="isneed" checkFlag="1/0" style="border:0" disabled="true"/>
                          </td>
                          <td>
                            <custom:write name="element" property="name"/>
                          </td>
                          <td>
                            <custom:write name="element" property="para1" nbsp="true"/>
                          </td>
                          <td colspan="2">
                            <custom:write name="element" property="actionname" nbsp="true"/>
                          </td>
                        </tr>
                        </logic:iterate>
                      </table>
                    </div>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          </tbody>
        </table>
      </td>
    </tr>
    <tr>
      <td class=summary_top height="6"></td>
    </tr>
    <tr>
      <%@ include file="ControlGLAccountInfoBtn.inc" %>
    </tr>
  </table>
</form>
</body>
</html>
